import React from 'react';
import ReactDom from 'react-dom';
import BreadcrumbDropdown from './dropdown';
import { ConfigProvider } from '@teamix/ui';

export default class Searcher extends React.Component {
  constructor(props) {
    super(props);
    this.searcherDropdown = React.createRef();
  }

  boot(opts) {
    ReactDom.render(
      <ConfigProvider prefix="yx-">
        <BreadcrumbDropdown ref={this.searcherDropdown} />
      </ConfigProvider>,
      opts.container,
    );
  }
}
